Create reply types in LINE

1. How to create an Entity for reply types in LINE.

Picture48.png
-Name: You will insert the name for bot chat Entity
Ex:[Text] Entity,[button] Entity,[Confirm] Entity…
-Description: Describe your entity ,more detail, more easily to understand
Ex:[Text]-This entity for “text”, [Button]-This entity for “Button”,
-Phase : ‘0’ is the first phase and always create phase ‘0’ first,Mission of ‘0’ phase is display immediately when user add ad start chat with the bot. Maximum phase is ‘2147483647’ which mean insert any thing will return the response of this entity.
-Lock Phase: This will search from entity which in phase from “specily number” to “specily number”.
Ex:We have create an entity Phase ‘11’. and lock phase is “0” to “10” ,The entity with Phase ‘0’ is always create first,So that mean lock phase is now from “0” to “10”,But the phase we want to find is ‘11’ so this won’t find the Entity which Phase is ‘11’.
-Phrase: Depend on your situations the right a text to this entity for response of this entity.
Ex:[Text] => Display the Text,[button] => Display the button. When you type ‘Display the Text’ it will automatically display the response of this entity.
-Regex:
Ex:The Phase have input ‘Display the Text’ or ‘Display the button’ then regex will be, ‘Text’ or ‘Button’ it also automatically display the response for this entity like Phrase.

2. How to create Response for each reply types in LINE.

Note: “_” Is special character to split into many elements.

2.1.How to create “Text” type.

2.1.1. Create Response for “Text” Type.

Picture49.png - The syntax of this response is nothing, just insert the content you want to display, call it by Phrase or Regex of entity and the text will be display.

2.1.2.Example:

  • Create Entity ‘Text’:
    Picture50.png
  • Create Response:
    Picture51.png
  • Result:
    Picture52.png

2.2.How to create “Button” type.

2.2.1.Create Response for “Button” Type.

Picture53.png

2.2.2.Example:

  • Create entity ‘Button’:
    Picture54.png
  • Create response:
    Picture55.png
  • Create one more entity to reply when you click the button.
    Picture57.png
  • One more Response…:
    Picture58.png
  • Result:
    Picture59.png

2.3.How to create “Confirm” type.

2.3.1.Create Response for “Confirm” Type.

Picture60.png

2.3.2.Example:

  • Create entity “Confirm”:
    Picture61.png
  • Create response:
    Picture62.png
  • Create 2 more entity for the result(Text entity).
    Picture63.png
  • Result:
    Picture64.png

2.4.How to create “Image” type.

2.4.1.Create Response for “Image” Type.

Picture65.png

2.4.2.Example:

  • Create entity “Image”:
    Picture66.png
  • Create response for ‘Image'.
    Picture67.png
    Note: ‘Cloud icon’ for you to upload an image and ‘Folder Icon’ for you to choose an image(if you don’t have any image to choose,then upload and back to this page,then you can choose).

  • Result:
    Picture68.png

2.5.How to create “Sticker” type.

2.5.1.Create Response for “Sticker” Type.

Picture69.png
Note: Syntax should be StyleImage_StickerPackageID_StickerID. You can looking for StickerPackageID and StickerID in
https://devdocs.line.me/files/sticker_list.pdf

2.5.2.Example:

  • Create Entity ‘Sticker’:
    Picture70.png
  • Create Response:
    Picture71.png
  • Result:
    Picture72.png

2.6.How to create “Location” type.

2.6.1.Create Response for “Location” Type.

Picture73.png

2.6.2.Example:

  • Create entity ‘Location’:
    Picture74.png
  • Create response:
    Picture75.png
  • Result:
    Picture76.png

Picture77.png

2.7.2.Example:

  • Create entity ‘Carousel’:
    Picture78.png
  • Create response:
    Picture79.png
    And 4 more Object to call when user choose item

Picture80.png Note:The number of the object need to be create equally Column1 have 2 object then column 2 will also have 2 object
The picture below, is Logic diagram for post-back action Picture81.png - Result:
Picture82.png